xen/arm: ioremap_attr: return NULL is __vmap failed
authorJulien Grall <julien.grall@linaro.org>
Mon, 18 Nov 2013 13:08:23 +0000 (13:08 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 16:00:03 +0000 (16:00 +0000)
commitf1b346fdb72c86367c28e79d140ccc8515a0c3f4
treefab92b96a2efa5f2e2a855ad275052982e6f13fe
parent9b6b1b815c500d142ba4f13d5cd1929e385c56b6
xen/arm: ioremap_attr: return NULL is __vmap failed

Most of ioremap_* caller check if ioremap returns NULL. Actually, if the
physical address is non-aligned, Xen will return the pointer given by
__vmap plus the offset in the page. So if ioremap_* fails, the caller
will retrieve an non-NULL address and continue as if there was no error.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/mm.c